SET BSP CAMERA COLLISION

This command will set the collision sphere of the camera for the BSP world.

  Syntax
SET BSP CAMERA COLLISION Collision Index, Camera Number, Radius, Response
  Parameters
Collision Index
Integer
This value is an integer number such as 1.
Camera Number
Integer
Specify a camera number between 0 and 32.
Radius
Float
This value is a float number such as 0.5
Response
Integer
This value is an integer number such as 1.

  Returns

This command does not return a value.

  Description

This will automatically adjust the position of the camera when it attempts to enter solid BSP geometry. The camera will be repositioned to produce the smoothest collision response. If the Response value is set to one, the new position backtracks to the last collision free position when a hit occurs. It is worth noting that even commands that reposition the camera are subject to the BSP collision once active. To avoid problems repositioning the camera, simply deactivate and reactivate the collision during positioning.

  Example Code
No example code is provided for this command
  See also

WORLD Commands Menu
Index